import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   component: HomeView,
    // },
    // {
    //   path: '/about',
    //   name: 'about',
    //   component: () => import('../views/AboutView.vue'),
    // },
    {
      path: '/',
      name: 'LoginView',
      component: () => import('../views/Doctors Desktop Version/LoginView.vue'),
    },
    {
      path: '/IndexView',
      name: 'IndexView',
      component: () => import('../views/IndexView.vue'),
      children: [
        // 患者详情页面
        {
          path: '/IndetailView',
          name: 'IndetailView',
          component: () => import('../views/Doctors Desktop Version/IndetailView.vue'),
        },
        // 患者档案页面
        {
          path: '/RecordView',
          name: 'RecordView',
          component: () => import('../views/Doctors Desktop Version/RecordView.vue'),
        },
        //平台框架
        {
          path: '/PlatformFrameView',
          name: 'PlatformFrameView',
          component: () => import('../views/Doctors Desktop Version/PlatformFrameView.vue'),
        },
        //新增慢性病签约管理
        {
          path: '/AddCSignview',
          name: 'AddCSignview',
          component: () => import('../views/Doctors Desktop Version/ChronicSign/AddCSignview.vue'),
        },
        //签约管理
        {
          path: '/CSignview',
          name: 'CSignview',
          component: () => import('../views/Doctors Desktop Version/ChronicSign/CSignview.vue'),

        },
        //我的签约
        {
          path: '/MyCsignView',
          name: 'MyCsignView',
          component: () => import('../views/Doctors Desktop Version/ChronicSign/MyCsignView.vue'),

        },
        //已签约档案详情
        {
          path: '/GotCsignview',
          name: 'GotCsignview',
          component: () => import('../views/Doctors Desktop Version/ChronicSign/GotCsignview.vue'),

        },
        //新增慢性病签约管理
        {
          path: '/AddCSignview',
          name: 'AddCSignview',
          component: () => import('../views/Doctors Desktop Version/ChronicSign/AddCSignview.vue'),
        },
        //知识管理-我的知识
        {
          path: '/HealthEducation',
          name: 'HealthEducation',
          component: () => import('../views/KnowledgeManagement/HealthEducation.vue'),

        },
        //知识管理-知识搜索
        {
          path: '/Knowledgesearch',
          name: 'Knowledgesearch',
          component: () => import('../views/KnowledgeManagement/Knowledgesearch.vue'),
        },

        //基础设置-指标管理
        {
          path: '/IndexManagementView',
          name: 'IndexManagementView',
          component: () => import('../views/Doctors Desktop Version/BasicSettings/IndexManagementView.vue'),
        },

        //健康报告-慢性管理
        {
          path: '/HealthReportView',
          name: 'HealthReportView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Health Report/HealthReportView.vue'),
        },
        //转诊管理-指标采集
        {
          path: '/Collection',
          name: 'Collection',
          component: () => import('../views/Treatment management/Collection.vue'),
        },
        //转诊管理-转诊管理
        {
          path: '/Referral',
          name: 'Referral',
          component: () => import('../views/Treatment management/Referral.vue'),
        },

        //慢性管理列表-慢性管理
        {
          path: '/ChronicDataListView',
          name: 'ChronicDataListView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Chronic management List/ChronicDataListView.vue'),
        },
        //慢性管理列表-管理页面
        {
          path: '/ManagementPageView',
          name: 'ManagementPageView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Chronic management List/ManagementPageView.vue'),
        },
        //慢性管理列表-健康宣教
        {
          path: '/HealthEducationView',
          name: 'HealthEducationView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Chronic management List/components/HealthEducationView.vue'),
        },
        //居民档案
        {
          path: '/ResidentfilesView',
          name: 'ResidentfilesView',
          component: () => import('../views/Doctors Desktop Version/ResidentfilesView.vue'),
        },

        //基础设置--元素管理
        {
          path: '/ElementSettings',
          name: 'ElementSettings',
          component: () => import('../views/Smallscaleinfrastructure/ElementSettings.vue'),
        },
        //基础设置--表单管理
        {
          path: '/FormManagement',
          name: 'FormManagement',
          component: () => import('../views/Smallscaleinfrastructure/FormManagement.vue'),
        },
        //基础设置--病种管理
        {
          path: '/Diseasemanagement',
          name: 'Diseasemanagement',
          component: () => import('../views/Smallscaleinfrastructure/Diseasemanagement.vue'),
        },
        {
          path: '/Indicatorconfiguration',
          name: 'Indicatorconfiguration',
          component: () => import('../views/Smallscaleinfrastructure/Indicatorconfiguration.vue'),
        },
        //基础设置--团队管理
        {
          path: '/TeamView',
          name: 'TeamView',
          component: () => import('../views/Doctors Desktop Version/BasicSettings/TeamView.vue'),
        },

        //基础设置--设备管理
        {
          path: '/EquipmentView',
          name: 'EquipmentView',
          component: () => import('../views/Doctors Desktop Version/BasicSettings/EquipmentView.vue'),
        },
        //基础设置--转诊配置
        {
          path: '/ReferralView',
          name: 'ReferralView',
          component: () => import('../views/Doctors Desktop Version/BasicSettings/ReferralView.vue'),
        },
        //慢性管理列表--随访管理
        {
          path: '/DiagnosisManagementView',
          name: 'DiagnosisManagementView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Chronic management List/components/DiagnosisManagementView.vue'),
        },
        //慢性管理列表--风险评估
        {
          path: '/RiskAssessmentView',
          name: 'RiskAssessmentView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Chronic management List/components/RiskAssessmentView.vue'),
        },
        //慢性管理列表--健康报告
        {
          path: '/HealthReportView',
          name: 'HealthReportView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Health Report/HealthReportView.vue'),
        },
        //慢性管理列表--健康监控
        {
          path: '/HealthMonitoringView',
          name: 'HealthMonitoringView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Chronic management List/components/HealthMonitoringView.vue'),
        },

        //基础档案
        {
          path: '/RecordView',
          name: 'RecordView',
          component: () => import('../views/Doctors Desktop Version/RecordView.vue'),
        },

        //档案详细
        {
          path: '/IndetailView',
          name: 'IndetailView',
          component: () => import('../views/Doctors Desktop Version/IndetailView.vue'),
        },
        //慢性管理列表--慢病诊疗
        {
          path: '/DiagnosisTreatmentView',
          name: 'DiagnosisTreatmentView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Chronic management List/components/DiagnosisTreatmentView.vue'),
        },
        //慢性管理列表--健康干预
        {
          path: '/HealthInterventionView',
          name: 'HealthInterventionView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Chronic management List/components/HealthInterventionView.vue'),
        },
        //产品说明
        {
          path: '/ExplainView',
          name: 'ExplainView',
          component: () => import('../views/DescriptionOfProducts/ExplainView.vue'),
        },
        //版本更新
        {
          path: '/VersionUpdatingView',
          name: 'VersionUpdatingView',
          component: () => import('../views/DescriptionOfProducts/VersionUpdatingView.vue'),

        },
        //组件规范
        {
          path: '/StandardView',
          name: 'StandardView',
          component: () => import('../views/DescriptionOfProducts/StandardView.vue'),
        },
        //系统结构
        {
          path: '/ConstructionView',
          name: 'ConstructionView',
          component: () => import('../views/DescriptionOfProducts/ConstructionView.vue'),
        },
        {
          path: '/AccessDataView',
          name: 'AccessDataView',
          component: () => import('../views/Doctors Desktop Version/Chronic Management/Access Management/AccessDataView.vue'),
        },
        //管理层级
        {
          path: '/LevelofmanagementView',
          name: 'LevelofmanagementView',
          component: () => import('../views/DecisionManagement/LevelofmanagementView.vue'),
        },
        //管理概况
        {
          path: '/ManagementOverviewView',
          name: 'ManagementOverviewView',
          component: () => import('../views/DecisionManagement/ManagementOverviewView.vue'),
        },
        //工作量统计
        {
          path: '/WorkloadstatisticsView',
          name: 'WorkloadstatisticsView',
          component: () => import('../views/DecisionManagement/WorkloadstatisticsView.vue'),
        },
        {
          path: '/GeneralSituationView',
          name: 'GeneralSituationView',
          component: () => import('../views/DecisionManagement/GeneralSituationView.vue'),
        }
      ]
    },
    {
      path: '/PatientLogin',
      name: 'PatientLogin',
      component: () => import('../views/Patient movement/LoginShowview.vue'),
    },



  ],
})


export default router